package oop.day01;

public class Student {//数据类型
     String name;
     int age;
     String clazz;
    Student(){

    }

    Student(String name,int age){
        this.name = name;
        this.age = age;
    }

     Student(String name, int age, String clazz) {
         this.name = name;
         this.age = age;
         this.clazz = clazz;
     }

     public void study(){
         System.out.println(name+age+"岁，班级"+clazz+"Student study");
     }
     public void sleep(){
         System.out.println(name+age+"岁，班级"+clazz+"Student sleep");
     }

}
